package com.library.service.impl;

import com.library.bean.Book;

import com.library.dao.BookDao;
import com.library.dao.impl.BookDaoImpl;
import com.library.service.BookService;

import java.util.List;

/**
 * @Author : 雾眠气泡水
 * @Date : 2024/9/15 -- 01:04
 * @Description :
 */
public class BookServiceImpl implements BookService {
    private final BookDao bookDao = new BookDaoImpl();
    @Override
    public List<Book> findAll() {
        List<Book> list = bookDao.queryAll();
        if(list.isEmpty()){
            System.out.println("没有书籍");
        }
        return list;
    }
}
